package com.gmsk.pocket.dao;

import com.gmsk.pocket.entity.Doc;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DocMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Doc record);

    int insertSelective(Doc record);

    Doc selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Doc record);

    int updateByPrimaryKey(Doc record);

    List<Doc> selectByType(@Param("typeId") Integer typeId, @Param("start") Integer start, @Param("limit") Integer limit);

    Integer selectCount(Integer typeId);
}